package test;

import view.ChessBoard;

import javax.swing.*;
import java.awt.*;

/***
 * Author: Mr.Zhao, Time: 2018/5/1/9:59
 * Description:
 */
public class MyLabel extends JLabel {
    public MyLabel(String text) {
        super(text);
    }

    @Override
    protected void paintComponent(Graphics g) {
        g.setColor(new Color(255, 200, 136));
        g.fillOval(0,
                0,
                100, 100);

    }

    public void setPosition() {
        this.setBounds(0, 0, 100, 100);
    }
}
